package com.github.tomakehurst.wiremock.db.spi;

import com.github.tomakehurst.wiremock.db.service.DbRequestJournalStore;
import com.github.tomakehurst.wiremock.spi.RequestJournalStoreProvider;
import com.github.tomakehurst.wiremock.store.RequestJournalStore;

// SPI 实现类：提供 DbRequestJournalStore 实例
public class DbRequestJournalStoreProvider implements RequestJournalStoreProvider {

    @Override
    public RequestJournalStore create() {
        // 创建数据库版 RequestJournalStore（你的实现）
        return new DbRequestJournalStore();
    }

    // 优先级设为 1（高于默认的 0，确保被优先选中）
    @Override
    public int priority() {
        return 1;
    }
}